//  Copyright (c) 2008  Yoong-ki Ahn & Youngjin Kim < mexif@googlegroups.com>
//  See the enclosed file COPYING for license information (MIT Licence).
//  If you did not receive this file,
//  see http://www.opensource.org/licenses/mit-license.php.

#ifndef _FINDFILE_H_
#define _FINDFILE_H_

#include <crtdefs.h>
#include <io.h>
#include <list>
#include <string>


class FindFile
{
public:
	intptr_t		hFile;
	struct _wfinddata64_t c_file;


	FindFile();
	FindFile( const wchar_t * filter );
	~FindFile();

	void	Init( const wchar_t * filter );
	void	Close();

	void	Next();
	bool	IsValid();
};

typedef std::list< std::wstring>	wstring_list;

wstring_list	LookupDirectory( const wchar_t * path );

#endif

